import flask
from flask import request

app = flask.Flask(__name__)

@app.route("/upload_images", methods=["GET", "POST"])
def upload_images():
    if request.method == "POST":
        file = request.files["file"]
        file_name = "./datas/boss_images/" + file.filename
        print("收到文件：", file_name)
        file.save(file_name)
        return "success"
    else:
        return "success get"

app.run("0.0.0.0", 8888)
